using Microsoft.EntityFrameworkCore;
using MyApi.Api.Entity;
namespace MyApi.Api.DB
{
    public class MyApiDB : DbContext
    {
        public MyApiDB(DbContextOptions options) : base(options) { }
        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<UserRoles> UserRoles { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer(@"server=LAPTOP-AS39K086\MSSQLSERVER1;database=MyApi;uid=HUANG;pwd=571193002;");
        }
    }
}